/**
 * 
 */
package java8;

import java.util.ArrayList;

/**
 * @author zhongfang
 *
 */
public class StringTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
    	String string=new String("abc");
    	String string2="abc";
    	String string3="abc";
    	System.out.println(string.hashCode()==string2.hashCode());
    	System.out.println(string3==string.intern());
    	System.out.println("abc"==string.intern());
    	
    	ArrayList<Integer> arrayList=new ArrayList<>();
	}

}
